package com.hyper_yang._03_designpatterns.principles.demo2.next;

/**
 * projectName: com.hyper_yang._03_designpatterns.principles.demo2.next
 *
 * @author: sakiko
 * time: 2025/9/26 1:12
 * description: 正方形
 */
public class Square implements Quadrilateral {

    private Double side;

    public Double getSide() {
        return side;
    }

    public void setSide(Double side) {
        this.side = side;
    }

    @Override
    public double getLength() {
        return this.side;
    }

    @Override
    public double getWidth() {
        return this.side;
    }
}
